package cn.fzm.demo02;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Dremeue
 * @create 2019-09-25 0:34
 **/
public class TestProperty {
    @Test
    public void testPropertyAdd() {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean1.xml");
        Property property = (Property) context.getBean("property");
        property.add();
    }

    @Test
    public void testProperty2Add() {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean1.xml");
        Property2 property2 = (Property2) context.getBean("property2");
        property2.add();
    }

}
